import { useMemo } from 'react';
import { RouterProvider } from 'react-router';
import { createAppRouter } from './router';

function App() {
  // 创建路由配置
  const router = useMemo(() => createAppRouter(), []);

  return <RouterProvider router={router} />;
}

export default App;